function toHome(){
	uni.setStorageSync('login', true);
	uni.switchTab({
		url:'/pages/tab/trip/trip',
	});
}
function toAgreement(){
	getApp().globalData.webUrl = "https://www.xksndf2002.cn/agreement-lalaq.html";
	uni.navigateTo({
		url: '/pages/main/web/web'
	})
}
function toPrivacy(){
	getApp().globalData.webUrl = "https://www.xksndf2002.cn/privacy-lalaq.html";
	uni.navigateTo({
		url: '/pages/main/web/web'
	})
}

//注册相关
function toRegister(){
	uni.navigateTo({
		url: '/pages/main/register/register'
	})
}
function toRegisterPassword(){
	uni.navigateTo({
		url: "/pages/main/register/register-password"
	})
}
function toRegister1(){
	uni.navigateTo({
		url: "/pages/main/register/register1"
	})
}
function toRegister2(){
	uni.navigateTo({
		url: "/pages/main/register/register2"
	})
}
function toRegister3(){
	uni.navigateTo({
		url: "/pages/main/register/register3"
	})
}
function toRegister4(){
	uni.navigateTo({
		url: "/pages/main/register/register4"
	})
}
function toRegister5(){
	uni.navigateTo({
		url: "/pages/main/register/register5"
	})
}
function toRegister6(){
	uni.navigateTo({
		url: "/pages/main/register/register6"
	})
}
function toRegister7(){
	uni.navigateTo({
		url: "/pages/main/register/register7"
	})
}
function toRegister8(){
	uni.navigateTo({
		url: "/pages/main/register/register8"
	})
}

//我的相关
function toAccount(){
	uni.navigateTo({
		url:'/pages/main/mine/account/account'
	})
}
function toUpdatePassword(){
	uni.navigateTo({
		url:'/pages/main/mine/password/password'
	})
}

//消息公告
function toNoticeDetail(params){
	uni.navigateTo({
		url: '/pages/main/notice/detail/detail',
		success: res => {
			res.eventChannel.emit('sendData', params);
		},
	})
}


export default {
	toHome,
	toAgreement,
	toPrivacy,
	//注册相关
	toRegister,
	toRegisterPassword,
	toRegister1,
	toRegister2,
	toRegister3,
	toRegister4,
	toRegister5,
	toRegister6,
	toRegister7,
	toRegister8,
	//我的相关
	toAccount,
	toUpdatePassword,
	//消息公告
	toNoticeDetail,
}